package proyecto.modelo;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.Set;


/**
 * The persistent class for the cartelera database table.
 * 
 */
@Entity
@Table(name="cartelera")
public class Cartelera implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int in_idCartelera;

    @Temporal( TemporalType.TIMESTAMP)
	private Date ts_fechaCartelera;

    @Temporal( TemporalType.TIMESTAMP)
	private Date ts_horaCartelera;

	//bi-directional many-to-one association to Pelicula
    @ManyToOne
	//private Pelicula pelicula;
    private int pelicula;
	//bi-directional many-to-one association to Sala
    @ManyToOne
	//private Sala sala;
    private int sala;
	//bi-directional many-to-one association to Cine
    @ManyToOne
	//private Cine cine;
    private int cine;
	//bi-directional many-to-one association to VentaTicket
	@OneToMany(mappedBy="cartelera")
	private Set<VentaTicket> ventaTickets;

    public Cartelera() {
    }

	public int getIn_idCartelera() {
		return this.in_idCartelera;
	}

	public void setIn_idCartelera(int in_idCartelera) {
		this.in_idCartelera = in_idCartelera;
	}

	public Date getTs_fechaCartelera() {
		return this.ts_fechaCartelera;
	}

	public void setTs_fechaCartelera(Date ts_fechaCartelera) {
		this.ts_fechaCartelera = ts_fechaCartelera;
	}

	public Date getTs_horaCartelera() {
		return this.ts_horaCartelera;
	}

	public void setTs_horaCartelera(Date ts_horaCartelera) {
		this.ts_horaCartelera = ts_horaCartelera;
	}

	public int getPelicula() {
		return this.pelicula;
	}

	public  void setPelicula(int pelicula) {
		this.pelicula = pelicula;
	}
	

	public int getCine() {
		return this.cine;
	}

	public  void setCine(int cine) {
		this.cine = cine;
	}

	public int getSala() {
		return this.sala;
	}

	public  void setSala(int sala) {
		this.sala = sala;
	}

		
	public Set<VentaTicket> getVentaTickets() {
		return this.ventaTickets;
	}

	public void setVentaTickets(Set<VentaTicket> ventaTickets) {
		this.ventaTickets = ventaTickets;
	}
	
}